/*
 *  Copyright 2010 Andrew Kroh
 *
 *  Kroh-IO is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Kroh-IO is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef KROHIO_SERIAL_PORT_H_
#define KROHIO_SERIAL_PORT_H_

int test_serial_port(const char *path);

int open_port(const char *path);

int get_baud_rate(int file_descriptor);

int get_data_bits(int file_descriptor);

int get_stop_bits(int file_descriptor);

int get_parity(int file_descriptor);

int send_break(int file_descriptor, int duration);

int close_port(int file_descriptor);

#endif // KROHIO_SERIAL_PORT_H_
